package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class PraiseChef implements Serializable {
    private String ucno;

    private String cno;

    private String uno;

    private Date uctime;

    private Date ucdate;

    private static final long serialVersionUID = 1L;

    public String getUcno() {
        return ucno;
    }

    public void setUcno(String ucno) {
        this.ucno = ucno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public Date getUctime() {
        return uctime;
    }

    public void setUctime(Date uctime) {
        this.uctime = uctime;
    }

    public Date getUcdate() {
        return ucdate;
    }

    public void setUcdate(Date ucdate) {
        this.ucdate = ucdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PraiseChef other = (PraiseChef) that;
        return (this.getUcno() == null ? other.getUcno() == null : this.getUcno().equals(other.getUcno()))
            && (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getUctime() == null ? other.getUctime() == null : this.getUctime().equals(other.getUctime()))
            && (this.getUcdate() == null ? other.getUcdate() == null : this.getUcdate().equals(other.getUcdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUcno() == null) ? 0 : getUcno().hashCode());
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getUctime() == null) ? 0 : getUctime().hashCode());
        result = prime * result + ((getUcdate() == null) ? 0 : getUcdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ucno=").append(ucno);
        sb.append(", cno=").append(cno);
        sb.append(", uno=").append(uno);
        sb.append(", uctime=").append(uctime);
        sb.append(", ucdate=").append(ucdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}